﻿// Show/Hide elements
function show(element)
{
    element.style.display = 'block';
}

function hide(element)
{
    element.style.display = 'none';
}

function getSelectValue(element)
{
    return element.options[element.selectedIndex].value;
}

function getSelectText(element)
{
    return element.options[element.selectedIndex].text;
}

function textBoxWatermark(textBox, oldValue, newValue)
{
    if(textBox.value == oldValue)
        textBox.value = newValue;
}